package com.pic4493.entities;

import android.os.Parcel;
import android.os.Parcelable;
import com.pic4493.base.BaseEntity;

public class ESubscribe extends BaseEntity implements Parcelable
{
   public String getDescribe()
   {
      return Describe;
   }

   public void setDescribe(String describe)
   {
      Describe = describe;
   }

   public String getCover()
   {
	  return Cover;
   }

   public void setCover(String cover)
   {
	  Cover = cover;
   }

   public String getName()
   {
	  return Name;
   }

   public void setName(String name)
   {
	  Name = name;
   }

   public String getId()
   {
	  return Id;
   }

   public void setId(String id)
   {
	  Id = id;
   }

   public void setCanDelete(boolean canDalete)
   {
	  this.CanDelete = canDalete;
   }

   public boolean CanDelete()
   {
	  return CanDelete;
   }

   private String Name;
   private String Id;
   private String Cover;
   private String Describe;
   private boolean CanDelete;

   public ESubscribe()
   {
   }

   public ESubscribe(Parcel in)
   {
	  Name = in.readString();
	  Id = in.readString();
	  Cover = in.readString();
	  Describe=in.readString();
	  CanDelete = in.readByte() == 1;
   }

   @Override
   public int describeContents()
   {
	  return 0;
   }

   @Override
   public void writeToParcel(Parcel out, int flags)
   {
	  out.writeString(Name);
	  out.writeString(Id);
	  out.writeString(Cover);
	  out.writeString(Describe);
	  out.writeByte((byte) (CanDelete ? 1 : 0));
   }
   
   public static final  Parcelable.Creator<ESubscribe> CREATOR=new Creator<ESubscribe>()
   {
      @Override
      public ESubscribe[] newArray(int size)
      {
   	    return new ESubscribe[size];
      }
      
      @Override
      public ESubscribe createFromParcel(Parcel in)
      {
   	    return  new ESubscribe(in);
      }
   };

}
